const path = require('path');
module.exports = {
    //开发模式
    mode: 'development',
    //入口文件
    entry: {
        'Demo00': './src/Demo00.ts',
    },
    //开发测试工具
    devtool: 'inline-source-map',
    //起服务
    devServer: {
        static: './dist',
    },
    //输出?
    output: {
        filename: '[name].js',
        path: path.resolve(__dirname, 'dist'),
    },
    //别名
    resolve: {
        extensions: [".ts", ".tsx", ".js"],
    },
    //匹配
    module: {
        rules: [
            { test: /\.tsx?$/, loader: "ts-loader" },
        ]
    },
}